using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SunshineFarmWord
{
    //角色需要用到的数据
    [CreateAssetMenu(fileName = "PlayerData", menuName = "Custom/Characters/PlayerData")]
    public class PlayerSO : ScriptableObject
    {
        public enum PlayerFaceEnum
        {
            Left = 0,
            Right = 1
        }

        [Serializable]
        public class PlayerStateUISpriteData
        {
            [field: SerializeField]
            public PlayerStateReusableData.Collider2DTagEnum tagEnum;
            [field: SerializeField]
            public Sprite sprite;
        }

        [field: SerializeField, Tooltip("玩家运动数据")]
        public PlayerRunData RunData { get; private set; }

        [field: SerializeField, Tooltip("玩家状态数据")]
        public PlayerStatesData PlayerStatesData { get; private set; }

        [field: SerializeField, Tooltip("玩家基础朝向 0->左;1->右")]
        public PlayerFaceEnum BaseFace { get; private set; } = PlayerFaceEnum.Right;
        [field: SerializeField, Tooltip("玩家状态图标数据")]
        public List<PlayerStateUISpriteData> playerStateUISpriteData;
    }
}
